package com.cy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * User user_id          user:id,username
 * 1     1                     1
 * 2     1                     2
 * 1     2
 * EnableAsync注解的作用就是告诉springboot再启动时，初始化下一个线程池。
 */
@EnableAsync//告诉spring初始化线程池
@SpringBootApplication
public class LogApplication {

    public static void main(String[] args) {
        SpringApplication.run(LogApplication.class, args);
    }

}
